package cn.schoolwow.flow.monitor.util;

import java.io.PrintWriter;
import java.io.StringWriter;

public class FlowMonitorUtil {
    public static String exception2String(Exception e) {
        if(null==e){
            return null;
        }
        StringWriter sw = new StringWriter();
        e.printStackTrace(new PrintWriter(sw));
        return sw.toString();
    }
}
